<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>监室管理系统 - 人物画像</title>
    <style>
        :root {
            --primary-color: #2c3e50;
            --secondary-color: #3498db;
            --background: #f8f9fa;
            --accent-color: #e74c3c;
            --success-color: #2ecc71;
        }

        body {
            font-family: 'Segoe UI', system-ui, sans-serif;
            margin: 0;
            padding: 0;
            background-color: var(--background);
        }

        /* 导航栏样式 */
        .navbar {
            background-color: var(--primary-color);
            padding: 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
        }

        .logo {
            color: white;
            font-size: 1.5em;
            font-weight: bold;
            padding: 15px 0;
            text-decoration: none;
        }

        .nav-links {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .nav-links li {
            margin: 0;
            padding: 0;
        }

        .nav-links a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            padding: 20px 15px;
            display: block;
            transition: all 0.3s;
            border-bottom: 3px solid transparent;
        }

        .nav-links a:hover, .nav-links a.active {
            color: white;
            border-bottom: 3px solid var(--secondary-color);
        }

        .user-controls {
            display: flex;
            align-items: center;
        }

        .content {
            padding: 20px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .coming-soon-container {
            text-align: center;
            padding: 100px 20px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            margin-top: 50px;
        }

        .coming-soon-icon {
            font-size: 80px;
            color: var(--secondary-color);
            margin-bottom: 20px;
        }

        .coming-soon-title {
            font-size: 2.5em;
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        .coming-soon-text {
            font-size: 1.2em;
            color: #666;
            max-width: 600px;
            margin: 0 auto 30px;
            line-height: 1.6;
        }

        .back-btn {
            display: inline-block;
            background: var(--secondary-color);
            color: white;
            padding: 12px 25px;
            border-radius: 5px;
            text-decoration: none;
            transition: background 0.3s;
            font-weight: 500;
        }

        .back-btn:hover {
            background: #2980b9;
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar">
        <div class="nav-container">
            <a href="/" class="logo">监室管理系统</a>
            <ul class="nav-links">
                <li><a href="/">首页</a></li>
                <li><a href="/rooms">房间管理</a></li>
                <li><a href="/profiles" class="active">人物画像</a></li>
                <li><a href="/medical">医疗辅助</a></li>
            </ul>
            <div class="user-controls">
                {% if current_user.is_authenticated %}
                <span style="color: white; margin-right: 15px;">
                    欢迎，{{ current_user.username }}
                    {% if current_user.user_type != 'normal' %}
                    <span style="background: #f39c12; color: white; padding: 3px 8px; border-radius: 3px; font-size: 0.8em; margin-left: 5px;">管理员</span>
                    {% else %}
                    <span style="background: #3498db; color: white; padding: 3px 8px; border-radius: 3px; font-size: 0.8em; margin-left: 5px;">普通用户</span>
                    {% endif %}
                </span>
                <a href="/logout" style="background: var(--accent-color); color: white; padding: 8px 15px; border-radius: 5px; text-decoration: none;">
                    登出系统
                </a>
                {% else %}
                <a href="/login" style="background: var(--secondary-color); color: white; padding: 8px 15px; border-radius: 5px; text-decoration: none; margin-right: 10px;">
                    登录
                </a>
                <a href="/register" style="background: var(--success-color); color: white; padding: 8px 15px; border-radius: 5px; text-decoration: none;">
                    注册
                </a>
                {% endif %}
            </div>
        </div>
    </nav>

    <div class="content">
        <div class="container">
            <!-- 页面标题 -->
            <h1 style="margin-bottom: 20px;">人物画像</h1>

            <!-- 显示flash消息 -->
            {% with messages = get_flashed_messages(with_categories=true) %}
                {% if messages %}
                    {% for category, message in messages %}
                        <div style="margin-bottom: 15px; padding: 10px 15px; border-radius: 5px;
                            {% if category == 'error' %}
                                background-color: #ffebee; border-left: 4px solid #e74c3c;
                            {% elif category == 'success' %}
                                background-color: #e8f5e9; border-left: 4px solid #2ecc71;
                            {% else %}
                                background-color: #e3f2fd; border-left: 4px solid #3498db;
                            {% endif %}">
                            <p style="margin: 0; color: #333;">{{ message }}</p>
                        </div>
                    {% endfor %}
                {% endif %}
            {% endwith %}

            <!-- 即将推出提示 -->
            <div class="coming-soon-container">
                <div class="coming-soon-icon">🚧</div>
                <h2 class="coming-soon-title">功能即将推出</h2>
                <p class="coming-soon-text">人物画像功能正在开发中，敬请期待。该功能将提供人员基本资料、行为特征分析、风险评估等功能，帮助管理人员更好地了解和管理在押人员。</p>
                <a href="/" class="back-btn">返回首页</a>
            </div>
        </div>
    </div>
</body>
</html>